package com.zbl.zblproject.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;


import java.math.BigDecimal;
import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/16
 * 管理员User表
 */
@TableName("zbl_admin_user")
public class AdminUser {

    @TableId(type = IdType.AUTO)
    private int userId;

    private String userName;

    private String email;

    @JsonIgnore
    private String password;

    private String ecSalt;

    private int addTime;

    private int lastLogin;

    private String lastIp;

    @JsonIgnore
    private String actionList;

    private String navList;

    private String langType;

    private int agencyId;

    private int suppliersId;

    private String todolist;

    private int roleId;

    private String telephone;

    private String address;

    /**
     * 门店地址
     */
    private String storeAddress;

    /**
     * 门店名称
     */
    private String storeName;

    /**
     * 门店区域
     */
    private String storeArea;

    /**
     * 门店等级
     */
    private int storeLevel;

    /**
     * 门店状态
     * 0 开启 1 关闭
     */
    private int status;

    /**
     * 指定物流公司
     */
    private String logistics;

    private BigDecimal balance;

    private BigDecimal rebateRate;

    /** 支付宝支付需要的属性 */
    private String alipayAuthToken;

    /** 微信支付需要的属性 */
    /**
     * 微信APPid
     */
    private String wxAppid;

    /**
     * 微信机器码
     */
    private String wxMchid;


    private String userNumber;

    private String userCode;



    @TableField(exist = false)
    private List<UserAddress> addressList;




    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEcSalt() {
        return ecSalt;
    }

    public void setEcSalt(String ecSalt) {
        this.ecSalt = ecSalt;
    }

    public int getAddTime() {
        return addTime;
    }

    public void setAddTime(int addTime) {
        this.addTime = addTime;
    }

    public int getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(int lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getLastIp() {
        return lastIp;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp;
    }

    public String getActionList() {
        return actionList;
    }

    public void setActionList(String actionList) {
        this.actionList = actionList;
    }

    public String getNavList() {
        return navList;
    }

    public void setNavList(String navList) {
        this.navList = navList;
    }

    public String getLangType() {
        return langType;
    }

    public void setLangType(String langType) {
        this.langType = langType;
    }

    public int getAgencyId() {
        return agencyId;
    }

    public void setAgencyId(int agencyId) {
        this.agencyId = agencyId;
    }

    public int getSuppliersId() {
        return suppliersId;
    }

    public void setSuppliersId(int suppliersId) {
        this.suppliersId = suppliersId;
    }

    public String getTodolist() {
        return todolist;
    }

    public void setTodolist(String todolist) {
        this.todolist = todolist;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getStoreAddress() {
        return storeAddress;
    }

    public void setStoreAddress(String storeAddress) {
        this.storeAddress = storeAddress;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getStoreArea() {
        return storeArea;
    }

    public void setStoreArea(String storeArea) {
        this.storeArea = storeArea;
    }

    public int getStoreLevel() {
        return storeLevel;
    }

    public void setStoreLevel(int storeLevel) {
        this.storeLevel = storeLevel;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getLogistics() {
        return logistics;
    }

    public void setLogistics(String logistics) {
        this.logistics = logistics;
    }

    public List<UserAddress> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<UserAddress> addressList) {
        this.addressList = addressList;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getRebateRate() {
        return rebateRate;
    }

    public void setRebateRate(BigDecimal rebateRate) {
        this.rebateRate = rebateRate;
    }

    public String getWxAppid() {
        return wxAppid;
    }

    public void setWxAppid(String wxAppid) {
        this.wxAppid = wxAppid;
    }

    public String getWxMchid() {
        return wxMchid;
    }

    public void setWxMchid(String wxMchid) {
        this.wxMchid = wxMchid;
    }


    public String getAlipayAuthToken() {
        return alipayAuthToken;
    }

    public void setAlipayAuthToken(String alipayAuthToken) {
        this.alipayAuthToken = alipayAuthToken;
    }


    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    @Override
    public String toString() {
        return "AdminUser{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", ecSalt='" + ecSalt + '\'' +
                ", addTime=" + addTime +
                ", lastLogin=" + lastLogin +
                ", lastIp='" + lastIp + '\'' +
                ", actionList='" + actionList + '\'' +
                ", navList='" + navList + '\'' +
                ", langType='" + langType + '\'' +
                ", agencyId=" + agencyId +
                ", suppliersId=" + suppliersId +
                ", todolist='" + todolist + '\'' +
                ", roleId=" + roleId +
                ", telephone='" + telephone + '\'' +
                ", address='" + address + '\'' +
                ", storeAddress='" + storeAddress + '\'' +
                ", storeName='" + storeName + '\'' +
                ", storeArea='" + storeArea + '\'' +
                ", storeLevel=" + storeLevel +
                ", status=" + status +
                '}';
    }
}
